package com.erlinyou.im.service.group;

import java.util.List;

import com.erlinyou.base.service.BaseService;
import com.erlinyou.im.model.group.Group;
import com.erlinyou.im.model.group.Groupmembers;
import com.erlinyou.travel.model.user.TUser;

public interface GroupService extends BaseService<Group, Integer>{


	boolean createGroup(Group group, List<TUser> imgAndId) throws RuntimeException;

	List<Group> selectBygroup(Long userId,int gtype);


	
	public boolean inGroup(Group group,List<Groupmembers> groupmembersList) throws RuntimeException;

	List<Group> findByGtype(Integer code);

	boolean saveAndMove(List<Group> grouplist, List<Groupmembers> groupmemberslist);

	boolean saveAddPOI(Group group, Groupmembers groupmembers);

	Group findByPoiId(String poiId);

	List<Group> findCustom(Long userId,Integer code);

	Group findByOwnerAndGtype(Long userId, int i);

	Group findByPoiIdAndGtype(String poiId, int i);


}
